﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;

namespace VTMessenger
{
    public partial class ChatPage : PhoneApplicationPage
    {
        public ChatPage()
        {
            InitializeComponent();
            DataContext = App.MainViewModel;
        }

        private async void Button_Click(object sender, RoutedEventArgs e)
        {
            await App.MainViewModel.SendMessage(tbMessage.Text);
            tbMessage.Text = "";
        }
    }
}